<?php echo $this->headLink()->appendStylesheet($this->websiteUrl . '/system/css/seotoaster.css'); ?>
<?php echo $this->headLink()->appendStylesheet($this->websiteUrl . 'system/js/thickbox/thickbox.css'); ?>
<?php $this->headScript()->appendFile($this->websiteUrl .'system/js/jquery/jquery.js'); ?>
<?php $this->headScript()->appendFile($this->websiteUrl . 'system/js/thickbox/thickbox.js'); ?>
<?php $this->headScript()->appendFile($this->websiteUrl . 'system/js/php.js'); ?>
<?php $this->headScript()->appendFile($this->websiteUrl . 'system/js/quote/quote.js'); ?>
<?php $this->headScript()->appendFile($this->websiteUrl . 'system/js/shoppingforcontent/shoppingforcontent.js'); ?>
<?php echo $this->headScript(); ?>
<script>
    $(function(){
        $("#shipping-country").find("option[value='<?php echo $this->shippingData['country']?>']").attr('selected','selected');
        $("#shipping-state").find("option[value='<?php echo $this->shippingData['state']?>']").attr('selected','selected');
        
        if (!$('#same-data-for-shipping').attr('checked')) $('#shipping-data').show()

        $('#same-data-for-shipping').change(function(){
            if (!$(this).attr('checked')) {
                $('#shipping-data').slideDown();
            } else {
                $('#shipping-data').slideUp();
            }
        });
    });
</script>
<div id="seotoaster" class="shoppingeditquote">
	<div id="editquotewrapper">
		<div class="success" style="display: none;" id="ajaxmsg"></div>
		<input type="hidden" id="wsurl-hidden" value="<?php echo $this->websiteUrl; ?>"/>
		<input type="hidden" id="qid-hidden" value="<?php echo $this->cartId; ?>"/>
		<input type="hidden" id="quoteId-hidden" value="<?php echo $this->quoteDetails['quoteId']; ?>"/>
        <input type="hidden" id="current-grand-total" value="<?php echo ($this->totalPrice+$this->totalTax); ?>" />
		<!--div class="admineditwhat">{%Quote%}</div-->
		<!--div class="close_window" onclick="parent.tb_remove();"></div-->
		<div id="sc-groupbrands" style="display: none;">
			<a id="closeeditquote" href="javascript:;" onclick="$(this).parent().hide();"><img src="<?php echo $this->websiteUrl; ?>system/images/bg-close.png" alt="close" border="0"/></a>
			<p class="lbl">{%Categories%}</p>
			<div id="sc-groups"></div>
			<p class="lbl">{%Brands%}</p>
			<div id="sc-brands"></div>
			<p class="lbl">{%Products%}</p>
			<div id="sc-products"></div>
		</div>
		<div id="quoteedittophead">
			<div id="companyinfo">
                <?php if (is_file($this->path.'public/'.$this->shoppingConfig['company_logo'])) : ?>
                    <img src="<?php echo $this->websiteUrl.$this->shoppingConfig['company_logo']; ?>" alt="company logo" style="max-width:130px;max-height:130px;"/><br/>
                <?php endif;?>
                <hr size="2">
		<p><?php echo $this->shoppingConfig['company']; ?><p>
                <p><?php echo $this->shoppingConfig['address'];
                    if (!empty($this->shoppingConfig['address']) && !empty($this->shoppingConfig['address2'])) echo ', ';
                    if (!empty($this->shoppingConfig['address2'])) echo $this->shoppingConfig['address2'];
                    ?></p>
                <p><?php
                    if (!empty($this->shoppingConfig['city'])) echo $this->shoppingConfig['city'];
                    if (!empty($this->shoppingConfig['city']) && (!empty($this->shoppingConfig['state']) or !empty($this->shoppingConfig['zip']))) echo ', ';
                    if (!empty($this->shoppingConfig['state'])) echo $this->shoppingConfig['state'];
                    if (!empty($this->shoppingConfig['state']) && !empty($this->shoppingConfig['zip'])) echo ' ';
                    if (!empty($this->shoppingConfig['zip'])) echo $this->shoppingConfig['zip'];
                    ?></p>
                <p><?php if (!empty($this->shoppingConfig['country'])) echo $this->shoppingConfig['country']; ?></p>
                <p><?php echo $this->shoppingConfig['phone'];?></p>
                <p><a href="mailto:<?php echo $this->shoppingConfig['email']; ?>"><?php echo $this->shoppingConfig['email']; ?></a></p>
                
                   
                    
                </div>
			<div id="clientinfo">
					<div id="updaquotedata">
						<p>{%Date%}:&nbsp;<input type="text" id="qupdDate" value="<?php echo $this->quoteDetails['quoteDate']; ?>" /></p>
                        <p>{%Quote Reference%}:&nbsp;<input type="text" id="qupdId" readonly value="<?php echo $this->quoteDetails['quoteId'];?>" /></p>
                        <p>{%Name%}:&nbsp;<input type="text" id="cart-quote-name" name="cart-quote-name" value="<?php echo $this->additionalUserData['name'];?>" /></p>
                        <p>{%Company%}:<input type="text" name="cart-quote-company" id="cart-quote-company" value="<?php echo $this->additionalUserData['company'];?>"/></p>
						<p>{%User email%}:&nbsp;<input type="text" id="qupdMail" value="<?php echo $this->userMail;?>" /></p>
						<div style="display: none;" id="moreusrdata">
							<div class="popuphint">{%Edit additional user info%}<a style="font-size:12px;padding:5px; color:#000;text-decoration:none;font-weight:bold;float:right;" href="javascript:;" onclick="$('#moreusrdata').toggle();">[ X ]<!--{%Close%}--></a></div>
                            <p><label>{%Address%} 1:</label><input type="text" name="cart-quote-address1" id="cart-quote-address1" value="<?php echo $this->additionalUserData['address1'];?>"/></p>
							<p><label>{%Address%} 2:</label><input type="text" name="cart-quote-address2" id="cart-quote-address2" value="<?php echo $this->additionalUserData['address2'];?>"/></p>
							<p><label>{%City%}:</label><input type="text" name="cart-quote-city" id="cart-quote-city" value="<?php echo $this->additionalUserData['city'];?>"/></p>
                            <p><label>{%State%}:</label><input type="text" name="cart-quote-state" id="cart-quote-state" value="<?php echo $this->additionalUserData['state'];?>"/></p>
                            <p><label>{%Zip%}:</label><input type="text" name="cart-quote-zip" id="cart-quote-zip" value="<?php echo $this->additionalUserData['zip'];?>"/></p>
                            <p><label>{%Country%}:</label><input type="text" name="cart-quote-country" id="cart-quote-country" value="<?php echo $this->additionalUserData['country'];?>"/></p>
							<p><label>{%Phone%}:</label><input type="text" name="cart-quote-phone" id="cart-quote-phone" value="<?php echo $this->additionalUserData['phone'];?>"/></p>
                            <?php if ($this->quoteDetails['quoteShipping'] !== false) :?>
                            <p><label>{%Use same data for shipping%}</label><input type="checkbox" name="same-data-for-shipping" id="same-data-for-shipping" <?php echo (empty($this->shippingData) ? 'checked=true' : ' ');?>/>
                            <div id="shipping-data">
                                <div class="popuphint">{%Shipping Address%}</div>
                                <p><label>{%First Name%}: *</label> <input type="text" name="shipping-firstname" id="shipping-firstname" value="<?php echo $this->shippingData['firstname'];?>"></p>
                                <p><label>{%Last Name%}:</label> <input type="text" name="shipping-lastname" id="shipping-lastname" value="<?php echo $this->shippingData['lastname'];?>"></p>
                                <p><label>{%E-mail%}:</label> <input type="text" name="shipping-email" id="shipping-email" value="<?php echo $this->shippingData['email'];?>"></p>
                                <p><label>{%Shipping Address%} 1: *</label> <input type="text" name="shipping-address1" id="shipping-address1" value="<?php echo $this->shippingData['address1'];?>"></p>
                                <p><label>{%Shipping Address%} 2:</label> <input type="text" name="shipping-address2" id="shipping-address2" value="<?php echo $this->shippingData['address2'];?>"></p>
                                <p><label>{%City%}: *</label> <input type="text" name="shipping-city" id="shipping-city" value="<?php echo $this->shippingData['city'];?>"></p>
                                <p><label>{%State%}:</label>
                                <select id="shipping-state" name="shipping-state">
                                    <option value=""></option>
                                    <optgroup label="United States">
                                        <option value="AK">Alaska</option>
                                        <option value="AL">Alabama</option>
                                        <option value="AR">Arkansas</option>
                                        <option value="AZ">Arizona</option>
                                        <option value="CA">California</option>
                                        <option value="CO">Colorado</option>
                                        <option value="CT">Connecticut</option>
                                        <option value="DE">Delaware</option>
                                        <option value="FL">Florida</option>
                                        <option value="GA">Georgia</option>
                                        <option value="HI">Hawaii</option>
                                        <option value="IA">Iowa</option>
                                        <option value="ID">Idaho</option>
                                        <option value="IL">Illinois</option>
                                        <option value="IN">Indiana</option>
                                        <option value="KS">Kansas</option>
                                        <option value="KY">Kentucky</option>
                                        <option value="LA">Louisiana</option>
                                        <option value="MA">Massachusetts</option>
                                        <option value="MD">Maryland</option>
                                        <option value="ME">Maine</option>
                                        <option value="MI">Michigan</option>
                                        <option value="MN">Minnesota</option>
                                        <option value="MO">Mississippi</option>
                                        <option value="MS">Missouri</option>
                                        <option value="MT">Montana</option>
                                        <option value="NC">North Carolina</option>
                                        <option value="ND">North Dakota</option>
                                        <option value="NE">Nebraska</option>
                                        <option value="NH">New Hampshire</option>
                                        <option value="NJ">New Jersey</option>
                                        <option value="NM">New Mexico</option>
                                        <option value="NV">Nevada</option>
                                        <option value="NY">New York</option>
                                        <option value="OH">Ohio</option>
                                        <option value="OK">Oklahoma</option>
                                        <option value="OR">Oregon</option>
                                        <option value="PA">Pennsylvania</option>
                                        <option value="RI">Rhode Island</option>
                                        <option value="SC">South Carolina</option>
                                        <option value="SD">South Dakota</option>
                                        <option value="TN">Tennessee</option>
                                        <option value="TX">Texas</option>
                                        <option value="UT">Utah</option>
                                        <option value="VA">Virginia</option>
                                        <option value="VT">Vermont</option>
                                        <option value="WA">Washington</option>
                                        <option value="DC">Washington D.C.</option>
                                        <option value="WI">Wisconsin</option>
                                        <option value="WV">West Virginia</option>
                                        <option value="WY">Wyoming</option>
                                    </optgroup>
                                    <optgroup label="Canada">
                                        <option value="Alberta">Alberta</option>
                                        <option value="British Columbia">British Columbia</option>
                                        <option value="Manitoba">Manitoba</option>
                                        <option value="New Brunswick">New Brunswick</option>
                                        <option value="Newfoundland">Newfoundland</option>
                                        <option value="Northwest Territories">Northwest Territories</option>
                                        <option value="Nova Scotia">Nova Scotia</option>
                                        <option value="Nunavut">Nunavut</option>
                                        <option value="Ontario">Ontario</option>
                                        <option value="Prince Edward Island">Prince Edward Island</option>
                                        <option value="Quebec">Quebec</option>
                                        <option value="Saskatchewan">Saskatchewan</option>
                                        <option value="Yukon Territory">Yukon Territory</option>
                                    </optgroup>
                                </select>
                            </p>
                            <p><label>{%ZIP Code%}: *</label><input type="text" name="shipping-zip" id="shipping-zip"  value="<?php echo $this->shippingData['zip'];?>"></p>
                            <p><label>{%Country%}: *</label>
                                <select id="shipping-country" name="shipping-country">
                                    <option value=""></option>
                                    <option value="US">United States</option>
                                    <option value="AL">Albania</option>
                                    <option value="DZ">Algeria</option>
                                    <option value="AD">Andorra</option>
                                    <option value="AO">Angola</option>
                                    <option value="AI">Anguilla</option>
                                    <option value="AG">Antigua and Barbuda</option>
                                    <option value="AR">Argentina</option>
                                    <option value="AM">Armenia</option>
                                    <option value="AW">Aruba</option>
                                    <option value="AU">Australia</option>
                                    <option value="AT">Austria</option>
                                    <option value="AZ">Azerbaijan Republic</option>
                                    <option value="BS">Bahamas</option>
                                    <option value="BH">Bahrain</option>
                                    <option value="BB">Barbados</option>
                                    <option value="BE">Belgium</option>
                                    <option value="BZ">Belize</option>
                                    <option value="BJ">Benin</option>
                                    <option value="BM">Bermuda</option>
                                    <option value="BT">Bhutan</option>
                                    <option value="BO">Bolivia</option>
                                    <option value="BA">Bosnia and Herzegovina</option>
                                    <option value="BW">Botswana</option>
                                    <option value="BR">Brazil</option>
                                    <option value="VG">British Virgin Islands</option>
                                    <option value="BN">Brunei</option>
                                    <option value="BG">Bulgaria</option>
                                    <option value="BF">Burkina Faso</option>
                                    <option value="BI">Burundi</option>
                                    <option value="KH">Cambodia</option>
                                    <option value="CA">Canada</option>
                                    <option value="CV">Cape Verde</option>
                                    <option value="KY">Cayman Islands</option>
                                    <option value="TD">Chad</option>
                                    <option value="CL">Chile</option>
                                    <option value="C2">China</option>
                                    <option value="CO">Colombia</option>
                                    <option value="KM">Comoros</option>
                                    <option value="CK">Cook Islands</option>
                                    <option value="CR">Costa Rica</option>
                                    <option value="HR">Croatia</option>
                                    <option value="CY">Cyprus</option>
                                    <option value="CZ">Czech Republic</option>
                                    <option value="CD">Democratic Republic of the Congo</option>
                                    <option value="DK">Denmark</option>
                                    <option value="DJ">Djibouti</option>
                                    <option value="DM">Dominica</option>
                                    <option value="DO">Dominican Republic</option>
                                    <option value="EC">Ecuador</option>
                                    <option value="SV">El Salvador</option>
                                    <option value="ER">Eritrea</option>
                                    <option value="EE">Estonia</option>
                                    <option value="ET">Ethiopia</option>
                                    <option value="FK">Falkland Islands</option>
                                    <option value="FO">Faroe Islands</option>
                                    <option value="FM">Federated States of Micronesia</option>
                                    <option value="FJ">Fiji</option>
                                    <option value="FI">Finland</option>
                                    <option value="FR">France</option>
                                    <option value="GF">French Guiana</option>
                                    <option value="PF">French Polynesia</option>
                                    <option value="GA">Gabon Republic</option>
                                    <option value="GM">Gambia</option>
                                    <option value="DE">Germany</option>
                                    <option value="GI">Gibraltar</option>
                                    <option value="GR">Greece</option>
                                    <option value="GL">Greenland</option>
                                    <option value="GD">Grenada</option>
                                    <option value="GP">Guadeloupe</option>
                                    <option value="GT">Guatemala</option>
                                    <option value="GN">Guinea</option>
                                    <option value="GW">Guinea Bissau</option>
                                    <option value="GY">Guyana</option>
                                    <option value="HN">Honduras</option>
                                    <option value="HK">Hong Kong</option>
                                    <option value="HU">Hungary</option>
                                    <option value="IS">Iceland</option>
                                    <option value="IN">India</option>
                                    <option value="ID">Indonesia</option>
                                    <option value="IE">Ireland</option>
                                    <option value="IL">Israel</option>
                                    <option value="IT">Italy</option>
                                    <option value="JM">Jamaica</option>
                                    <option value="JP">Japan</option>
                                    <option value="JO">Jordan</option>
                                    <option value="KZ">Kazakhstan</option>
                                    <option value="KE">Kenya</option>
                                    <option value="KI">Kiribati</option>
                                    <option value="KW">Kuwait</option>
                                    <option value="KG">Kyrgyzstan</option>
                                    <option value="LA">Laos</option>
                                    <option value="LV">Latvia</option>
                                    <option value="LS">Lesotho</option>
                                    <option value="LI">Liechtenstein</option>
                                    <option value="LT">Lithuania</option>
                                    <option value="LU">Luxembourg</option>
                                    <option value="MG">Madagascar</option>
                                    <option value="MW">Malawi</option>
                                    <option value="MY">Malaysia</option>
                                    <option value="MV">Maldives</option>
                                    <option value="ML">Mali</option>
                                    <option value="MT">Malta</option>
                                    <option value="MH">Marshall Islands</option>
                                    <option value="MQ">Martinique</option>
                                    <option value="MR">Mauritania</option>
                                    <option value="MU">Mauritius</option>
                                    <option value="YT">Mayotte</option>
                                    <option value="MX">Mexico</option>
                                    <option value="MN">Mongolia</option>
                                    <option value="MS">Montserrat</option>
                                    <option value="MA">Morocco</option>
                                    <option value="MZ">Mozambique</option>
                                    <option value="NA">Namibia</option>
                                    <option value="NR">Nauru</option>
                                    <option value="NP">Nepal</option>
                                    <option value="NL">Netherlands</option>
                                    <option value="AN">Netherlands Antilles</option>
                                    <option value="NC">New Caledonia</option>
                                    <option value="NZ">New Zealand</option>
                                    <option value="NI">Nicaragua</option>
                                    <option value="NE">Niger</option>
                                    <option value="NU">Niue</option>
                                    <option value="NF">Norfolk Island</option>
                                    <option value="NO">Norway</option>
                                    <option value="OM">Oman</option>
                                    <option value="PW">Palau</option>
                                    <option value="PA">Panama</option>
                                    <option value="PG">Papua New Guinea</option>
                                    <option value="PE">Peru</option>
                                    <option value="PH">Philippines</option>
                                    <option value="PN">Pitcairn Islands</option>
                                    <option value="PL">Poland</option>
                                    <option value="PT">Portugal</option>
                                    <option value="QA">Qatar</option>
                                    <option value="CG">Republic of the Congo</option>
                                    <option value="RE">Reunion</option>
                                    <option value="RO">Romania</option>
                                    <option value="RU">Russia</option>
                                    <option value="RW">Rwanda</option>
                                    <option value="VC">Saint Vincent and the Grenadines</option>
                                    <option value="WS">Samoa</option>
                                    <option value="SM">San Marino</option>
                                    <option value="ST">São Tomé and Príncipe</option>
                                    <option value="SA">Saudi Arabia</option>
                                    <option value="SN">Senegal</option>
                                    <option value="SC">Seychelles</option>
                                    <option value="SL">Sierra Leone</option>
                                    <option value="SG">Singapore</option>
                                    <option value="SK">Slovakia</option>
                                    <option value="SI">Slovenia</option>
                                    <option value="SB">Solomon Islands</option>
                                    <option value="SO">Somalia</option>
                                    <option value="ZA">South Africa</option>
                                    <option value="KR">South Korea</option>
                                    <option value="ES">Spain</option>
                                    <option value="LK">Sri Lanka</option>
                                    <option value="SH">St. Helena</option>
                                    <option value="KN">St. Kitts and Nevis</option>
                                    <option value="LC">St. Lucia</option>
                                    <option value="PM">St. Pierre and Miquelon</option>
                                    <option value="SR">Suriname</option>
                                    <option value="SJ">Svalbard and Jan Mayen Islands</option>
                                    <option value="SZ">Swaziland</option>
                                    <option value="SE">Sweden</option>
                                    <option value="CH">Switzerland</option>
                                    <option value="TW">Taiwan</option>
                                    <option value="TJ">Tajikistan</option>
                                    <option value="TZ">Tanzania</option>
                                    <option value="TH">Thailand</option>
                                    <option value="TG">Togo</option>
                                    <option value="TO">Tonga</option>
                                    <option value="TT">Trinidad and Tobago</option>
                                    <option value="TN">Tunisia</option>
                                    <option value="TR">Turkey</option>
                                    <option value="TM">Turkmenistan</option>
                                    <option value="TC">Turks and Caicos Islands</option>
                                    <option value="TV">Tuvalu</option>
                                    <option value="UG">Uganda</option>
                                    <option value="UA">Ukraine</option>
                                    <option value="AE">United Arab Emirates</option>
                                    <option value="GB">United Kingdom</option>
                                    <option value="UY">Uruguay</option>
                                    <option value="VU">Vanuatu</option>
                                    <option value="VA">Vatican City State</option>
                                    <option value="VE">Venezuela</option>
                                    <option value="VN">Vietnam</option>
                                    <option value="WF">Wallis and Futuna Islands</option>
                                    <option value="YE">Yemen</option>
                                    <option value="ZM">Zambia</option>
                                </select>
                            </p>
                            <p><label>{%Phone%}:</label><input type="text" name="shipping-phone" id="shipping-phone"  value="<?php echo $this->shippingData['phone'];?>"></p>
                            </div>
                            <?php endif; ?>
							<p align="right"><button class="formsubmit" style="float:right;font-size:12px; padding:4px 10px;width:auto;" onclick="updateQuoteData(<?php echo $this->quoteDetails['quoteId']; ?>);">{%Update%}</button></p>
						</div>
						<p align="right"><button class="formsubmit" style="font-size:12px; padding:4px 10px;width:auto;" onclick="$('#moreusrdata').toggle();">{%Fill more user data%}</button><button class="formsubmit" style="font-size:12px; padding:4px 10px;width:auto;" onclick="updateQuoteData(<?php echo $this->quoteDetails['quoteId']; ?>);">{%Update%}</button></p>
					</div>			
			</div>
		</div>
        <div style="clear:both;">
			<h1>{%Quote%} # <?php echo $this->quoteDetails['quoteId']; ?></h1>
		</div>
		<div id="usercart-holder">
			<div id="usercart-legend">
				<div class="photo">{%Photo%}</div>
				<div class="name">{%Product%}</div>
				<div class="note">{%Note%}</div>
				<div class="qty">{%Qty%}</div>
				<div class="price">{%Price%}(<span style="font-size: 12px;"><?php echo $this->shoppingConfig['currency']; ?></span>)</div>
				<!--div>{%Remove%}</div-->
			</div>
			<div id="usercart">
				<?php if(!empty($this->cartData)): ?>
					<?php foreach ($this->cartData as $id => $cartItem): ?>
						<div class="usercart-item-product">
							<div class="photo"><img src="<?php echo $this->websiteUrl . $cartItem['photo']; ?>" width="50" height="50" alt="<?php echo $cartItem['name']; ?>"/></div>
							<div class="name">
								<?php echo $cartItem['name']; ?>
								<?php if(isset($cartItem['options'])): ?>
									<?php foreach($cartItem['options'] as $optName => $optVal): ?>
										<?php if($optVal != 'select' . $optName): echo $optName . ': ' . $optVal; endif; ?>
									<?php endforeach; ?>
								<?php endif; ?>
							</div>
							<div class="note"><input type="text" class="adminnote" value="<?php echo $cartItem['note']; ?>" id="adminnote-<?php echo $id; ?>" /></div>
							<div class="qty"><input type="text" class="itqty" value="<?php echo $cartItem['count']; ?>" id="inptoupdcnt-<?php echo $id; ?>" /></div>
							<div class="price"><input type="text" class="itprice" value="<?php echo $cartItem['price']; ?>" id="inptoupd-<?php echo $id; ?>" /><span style="font-size: 12px;">&nbsp;<?php echo $this->shoppingConfig['currency']; ?></span></div>
							<!--div><input type="checkbox" name="remove[]" id="chkbxtorem-<?php echo $id; ?>" /></div-->
						</div>
					<?php endforeach; ?>
				<?php endif; ?>
			</div>
			<div id="statusline">				
				<div id="total">
                                    <div class="lbl">{%Sub-total%}:</div><div class="cnt"> <?php echo $this->totalPrice; ?> <span style="font-size: 12px;"> <?php echo $this->shoppingConfig['currency']; ?></span></div>
                                    <div class="lbl">{%Tax%}:</div><div class="cnt">  <?php echo $this->totalTax; ?> <span style="font-size: 12px;"> <?php echo $this->shoppingConfig['currency']; ?></span></div>
                                    <?php if ($this->quoteDetails['quoteShipping'] !== false) :?>
                                    <div class="lbl">{%Shipping%}:</div><div class="cnt">  <input type="text" name="shipping" id="shipping" value="<?php echo $this->quoteDetails['quoteShipping']; ?>" onkeyup="reCountTotalPrice(this.value);" /><span style="font-size: 12px;"> <?php echo $this->shoppingConfig['currency']; ?></span></div>
                                    <?php endif; ?>
                    <hr size="2"/>
                    <div class="lbl">{%Grand Total%}:</div><div class="cnt" id="grand-total"><span><?php echo ($this->totalPrice+$this->totalTax+$this->quoteDetails['quoteShipping']); ?></span> <span style="font-size: 12px;"> <?php echo $this->shoppingConfig['currency']; ?></span></div>
				</div>
                <div id="buttons" style="clear:both;">
                    <button class="formsubmit" id="addprod" onclick="addProductForQuote();">{%Add product%}</button>
					<button class="formsubmit" id="updCart">{%Update cart%}</button>
				</div>
			</div>
		</div>
		<div id="msgholder">
			<p><input type="text" style="width:800px" name="quote-disclaimer" id="quote-disclaimer" Value="<?php echo ($this->quoteDetails['quoteDisclaimer']) ? $this->quoteDetails['quoteDisclaimer'] : 'Disclaimer: ' ;?>" /></p>
			<div id="mailuserwin">
                <div class="lbl">{%User mail text%} <span onclick="$('.infovariables').show();">{%help%}</span></div>
				<textarea id="mailusertext" cols="22" rows="6"><?php echo $this->quoteDetails['mailToUser']; ?></textarea>
                <div class="infovariables" onclick="$(this).hide();">
                    <p>{%Note: you can set this template in "Shopping" => "Templates" menu%}</p>
                    <div style="float:left;">
                        <p>{$name} - {%name of user%}</p>
                        <p>{$date} - {%current date%}</p>
                        <p>{$quote_url} - {%quote preview url%}</p>
                    </div>
                </div>
			</div>
			<div id="internalmsgwin">
				<div class="lbl">{%Internal note%}</div>
				<textarea id="intmsgtext" cols="22" rows="6"><?php echo trim($this->quoteDetails['quoteIntMsg']); ?></textarea>
			</div>
		</div>
		<div id="bottomline">
			<div id="addinfo">
				<?php if($this->quoteDetails['hasPreview']): ?>
					<a target="_blank" href="<?php echo $this->websiteUrl; ?>sys/backend_quote/preview/qid/<?php echo $this->quoteDetails['quoteId'] .'.'. md5($this->quoteDetails['quoteId']) . '.' . $this->quoteDetails['quoteId']; ?>">{%Quote preview%}</a>
				<?php endif;?>
			</div>
			<div id="donebtn">
                <button id="saveQuote" class="formsubmit" onclick="generateQuote(false);">{%Save quote%}</button>
                <button id="generateQuote" class="formsubmit" onclick="generateQuote(true);">{%Save &amp; send quote%}</button>
			</div>
		</div>
	</div>
</div>